<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:s="http://jboss.org/schema/seam/taglib"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich"
  template="/WEB-INF/facelets/email/template_email.xhtml">

  <ui:param name="toName" value="#{emailServiceImpl.toName}"/>
  <ui:param name="toEmailAddr" value="#{emailServiceImpl.toEmailAddr}"/>
  <ui:param name="replyToName" value="#{sendEmail.fromName}"/>
  <ui:param name="replyToEmail" value="#{sendEmail.replyEmail}"/>
  <ui:param name="subject"
    value="#{msgs.format('jsf.email.admin.SubjectPrefix',
      sendEmail.fromLoginName)} #{sendEmail.subject}"/>

  <ui:define name="body">
    <p>#{msgs['jsf.email.admin.DearAdmin']}</p>

    <p>#{msgs.format('jsf.email.admin.UserMessageIntro',
      sendEmail.fromName, sendEmail.fromLoginName)}</p>
    <hr/>
    <h:outputText value="#{sendEmail.htmlMessage}" escape="false"/>
    <hr/>
    <p>#{msgs.format('jsf.email.ReplyInstructions',
      sendEmail.fromName, sendEmail.replyEmail)}</p>
  </ui:define>

</ui:composition>
